package com.jjrwa.action;

import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.Messages;
import com.jjrwa.transform.ServiceTransformHandler;

public class ServiceToController extends JavaFileAction {

    @Override
    public void actionPerformed(AnActionEvent e) {
        try {
            ServiceTransformHandler.serviceToController(e);
        } catch (Exception exception) {
            Messages.showErrorDialog(exception.getMessage(), "File Transform Error");
        }
    }

    @Override
    protected String judgeAnnotation() {
        return "org.springframework.stereotype.Service";
    }
}
